#ifndef __Part_H_
#define __Part_H_

#include "all.h"

#define Heat_H 7
#define Heat_L 3


#define Heat1_ON()  GPIO_SetBits(GPIOC,GPIO_Pin_1)
#define Heat1_OFF() GPIO_ResetBits(GPIOC,GPIO_Pin_1)

#define Heat2_ON()  GPIO_SetBits(GPIOC,GPIO_Pin_3)
#define Heat2_OFF() GPIO_ResetBits(GPIOC,GPIO_Pin_3)


struct tHeat_Var
{
	uint8_t Flag;
	uint8_t Sw;
	uint8_t num;
	int     MS;
	uint8_t Gear;
};
extern struct tHeat_Var Heat1_Var; 
extern struct tHeat_Var Heat2_Var; 

void Part_GPIO_Init(void);
void Heat1_En(void);
void Heat1_Dis(void);
void Heat2_En(void);
void Heat2_Dis(void);
void Heat_Time(void);

int NTC_value(uint16_t Channel);
int NTC_num_to_temperature(u8 num);
u8 NTC_look_up_table(u16 *a,u8 ArrayLong,u16 data); 
void Heat_NTC_Task(void);


#endif

